//:C10:Local.cpp
// Static members & local classes 
#include <locale>
using namespace std;

// Nested class CAN have static data members:
class Outer
{
    class Inner
    {
        static int i;   // OK
    };
};

int Outer::Inner::i = 47;

// Local class cannot have static data memvers:
void f()
{
    class local
    {
        public:
        //! static int i;   // Error
            // (How would you define i?)
    } x;
}

int main(void)
{
    Outer x; f();
}